import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from '@/common/logger'

// store
import home from './home/store'

const env = process.env.NODE_ENV

const debug = env == 'development'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        home
    },
    strict: debug,
    plugins: debug ? [createLogger()] : []
})
